-- GENERATED SPELL FOR [Summoned Felhunter] --


function spell0_6268(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(2691,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6268', 256, 1)
end

function spell1_6268(pUnit, Event) --@Summoned Demon,Self--
pUnit:FullCastSpellOnTarget(7741,pUnit)
pUnit:RegisterEvent('Sorts_6268', 577, 1)
end

function Sorts_6268(pUnit, Event)
local choix_sorts_6268 = math.random(0, 1)
if choix_sorts_6268 == 0 then
pUnit:RegisterEvent('spell0_6268', 1, 1)
end
if choix_sorts_6268 == 1 then
pUnit:RegisterEvent('spell1_6268', 1, 1)
end
end

function mob6268_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6268', math.random(1500, 3000), 1)
end

function mob6268_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6268_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6268_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6268, 1, 'mob6268_Action')
RegisterUnitEvent(6268, 2, 'mob6268_Leave')
RegisterUnitEvent(6268, 3, 'mob6268_Kill')
RegisterUnitEvent(6268, 4, 'mob6268_Die')
